﻿using SD.Infrastructure.DTOBase;
using SlamDunk.MES.IAppService.DTOs.Outputs.ResourceContext;
using System;
using System.Runtime.Serialization;

namespace SlamDunk.MES.IAppService.DTOs.Outputs.QualityContext
{
    /// <summary>
    /// 质量检查明细数据传输对象
    /// </summary>
    [DataContract]
    public class QualityInspectionDetailInfo : BaseDTO
    {
        #region 产品Id —— Guid ProductId
        /// <summary>
        /// 产品Id
        /// </summary>
        [DataMember]
        public Guid ProductId { get; set; }
        #endregion

        #region 生产数量 —— decimal ProductionQuantity
        /// <summary>
        /// 生产数量
        /// </summary>
        [DataMember]
        public decimal ProductionQuantity { get; set; }
        #endregion

        #region 合格数量 —— decimal QualifiedQuantity
        /// <summary>
        /// 合格数量
        /// </summary>
        [DataMember]
        public decimal QualifiedQuantity { get; set; }
        #endregion

        #region 样品数量 —— decimal SampleQuantity
        /// <summary>
        /// 样品数量
        /// </summary>
        [DataMember]
        public decimal SampleQuantity { get; set; }
        #endregion

        #region 人员工时 —— decimal? Manhour
        /// <summary>
        /// 人员工时
        /// </summary>
        [DataMember]
        public decimal? Manhour { get; set; }
        #endregion

        #region 设备台时 —— decimal? Machinehour
        /// <summary>
        /// 设备台时
        /// </summary>
        [DataMember]
        public decimal? Machinehour { get; set; }
        #endregion

        #region 排序 —— int Sort
        /// <summary>
        /// 排序
        /// </summary>
        [DataMember]
        public int Sort { get; set; }
        #endregion

        #region 描述 —— string Description
        /// <summary>
        /// 描述
        /// </summary>
        [DataMember]
        public string Description { get; set; }
        #endregion


        //导航属性

        #region 导航属性 - 产品 —— MaterialInfo ProductInfo
        /// <summary>
        /// 导航属性 - 产品
        /// </summary>
        [DataMember]
        public MaterialInfo ProductInfo { get; set; }
        #endregion
    }
}
